import router from '../router'
//import {storeToRefs} from 'pinia'
import useAuthStore from '../store/authStore'
const dynicRoute=()=>{
    const store=useAuthStore()
    const {getAuthMenuAsync}=store
 
    //调用方法
    getAuthMenuAsync()
    //调用getters方法获取路由信息
    //const homeRoute=storeToRefs(store).getDynicRoute.value
    const homeRoute=store.getDynicRoute
    console.log('homeRoute',homeRoute);
    
    router.addRoute(homeRoute)
  }
  export default dynicRoute